package com.atguigu.book.service.impl;

import com.atguigu.book.dao.BookDAO;
import com.atguigu.book.pojo.Book;
import com.atguigu.book.service.BookService;

import java.util.List;

/**
 * @ClassName: BookServiceImpl
 * @Description:
 * @Author: wty
 * @Date: 2022/12/12
 */

public class BookServiceImpl implements BookService {
    private BookDAO bookDAO;

    @Override
    public List<Book> getBookList(Integer minPrice, Integer maxPrice, Integer pageNo) {
        return bookDAO.getBookList(minPrice, maxPrice, pageNo);
    }

    @Override
    public Book getBook(Integer id) {
        return bookDAO.getBook(id);
    }
}
